package com.znxz.hzqiuxm.ziniublog.user.domain.entity;

import lombok.Data;
import org.bson.types.ObjectId;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

/**
 * Copyright © 2018年 ziniuxiaozhu. All rights reserved.
 *
 * @Author 临江仙 hzqiuxm@163.com
 * 课程评论
 * @Date 2018/8/30 21:09
 */
@Data
@Document("course_comment")
public class CourseCmtDO {

    @Id
    private ObjectId id;

    /**
     * 课程编号，对应course的id
     */
    private ObjectId courseId;

    /**
     * 评论者用户名
     */
    private String userName;

    /**
     * 评论者花名
     */
    private String showName;

    /**
     * 回复的某评论id
     */
    private ObjectId cmtPid;

    /**
     * 点赞用户列表
     */
    private List<String> likes;

    /**
     * 评论内容
     */
    private String content;

    /**
     * 评论时间
     */
    private LocalDateTime gmtCreate;
}
